package com.wdhcr.service;


import com.wdhcr.entity.Tag;
import javassist.NotFoundException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TagService {

    //新增标签
    Tag saveTag(Tag tag);

    //    查询
    Tag getTag(Long id);

    List<Tag> listTag();

    Tag getTagByName(String name);

    List<Tag> listTagTop(Integer size);

    Page<Tag> listTag(Pageable pageable);

    Tag updateTag(Long id, Tag tag) throws NotFoundException;

    void delete(Long id);

}
